package com.szrt.day20170419.ch02;


import org.junit.Test;

public class CalTest {
	
	@Test
	public void testName() throws Exception {
		
		//工资的加法  =基本工资  + 考评工资  封装到位
		Daizi  daizi = new Daizi();
		
		daizi.x =-10000;
		daizi.y =-2000;
		
		
		Cal cal = new Cal();
		int sum =cal.add(daizi);
		System.out.println(sum);
		
		
		
		
	}

}
